<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户列表</title>
<link href="/resources/lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
<link href="/resources/lib/ligerUI/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
<script src="/resources/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="/resources/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
<script src="/resources/lib/ligerUI/js/ex/ligerGrid.showFilter.js" type="text/javascript"></script>
<script src="/resources/lib/ligerUI/js/ex/ligerFilterEx.js" type="text/javascript"></script>
<script src="/resources/js/formatDate.js" type="text/javascript"></script>


<!-- <script src="/resources/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
<script src="/resources/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
<script src="/resources/lib/ligerUI/js/plugins/ligerForm.js" type="text/javascript"></script>
<script src="/resources/lib/ligerUI/js/plugins/ligerFilter.js" type="text/javascript"></script>
<script src="/resources/lib/ligerUI/js/plugins/ligerToolBar.js" type="text/javascript"></script>
<script src="/resources/lib/ligerUI/js/plugins/ligerWindow.js" type="text/javascript"></script>
<script src="/resources/lib/ligerUI/js/plugins/ligerMessageBox.js" type="text/javascript"></script> -->
<script type="text/javascript">
        var $grid;
        $(function (){

            //创建表格对象
            $grid = $("#maingrid").ligerGrid({
                columns: [
                { name: 'uuid', hide:true,type:"text"},
                { display: '操作人', name: 'userName', width: 100,type:"text"},
                { display: '路径', name: 'url', width: 100,type:"text"},
                { display: '操作参数', name: 'parameter', width: 100,type:"text"},
                { display: '错误信息', name: 'errorMsg', width: 100,type:"text"},
                { display: 'IP地址', name: 'ip', width: 100,type:"text"},
                { display: '操作说明', name: 'methodsNote', width: 100,type:"text"},
                { display: '操作时间', name: 'createTime', width: 100,type:"text",showTime:true,editor:{type:'date',options:{showTime:true}},
                	render: function (item)
                    {
                		console.log(item);
                        if (item.createTime.time) return timeStamp2String(item.createTime.time);
                        return '';
                    }	
                }
                ],
                sortName: 'createTime',
                sortOrder:'desc',
                autoFilter:true,
                width: '100%', pageSizeOptions: [5, 10, 15, 20], height: '100%',
                headerRowHeight:22, rowHeight:22, rownumbers:true,
                url:'/system/showLogList',
                onLoadData:onloadData
            });

        });
        
      //获取数据前添加过滤条件
      function onloadData(){
    	/*   applay(this.options.parms, [{ name: "cond", value: cond, temp: true }]); */
    	 //this.set('parms', [{ name: "cond", value: cond, temp: true }]);
      }
    </script>
</head>
<body  style="padding:10px">
    <div id="maingrid"></div> 
</body>
</html>
